﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TouchSocket.Sockets;

namespace Application.Common.Interface
{
    public interface ICustomTcpClient
    {
        TcpClient TcpClient { get; }

        void Connect();
        void Send(byte[] bytes);
        /// <summary>
        /// 所有的都不要用，会阻塞设备的socket链接
        /// </summary>
        /// <param name="bytes"></param>
        /// <param name="adapterFilter"></param>
        /// <returns></returns>
        ResponsedData SendThenReceive(byte[] bytes, AdapterFilter adapterFilter = AdapterFilter.NoneAll);
        void TestOrderSend();
    }
}
